<?php





namespace app\shop\model;



use app\crm\model\FollowRecord;


use app\admin\model\Common;


use app\crm\model\ShopOrderGoods;
use app\crm\model\ShopPerson;
use think\facade\Db;

use think\model\concern\SoftDelete;

use app\common\traits\ActionRecordTrait;

class ShopOrderGoodsOptionLog extends Common

{

    use ActionRecordTrait;


    /**
     * 表名
     * @var string
     */

    protected $name = 'shop_order_goods_option_log';

    protected $defaultSoftDelete = 0;

    public function shopOrderGoods()
    {
        return $this->hasOne(ShopOrderGoods::class);
    }

    //获取护理师
    public function NurseOne()
    {
        return $this->hasOne(ShopPerson::class,'id','nurse_one');
    }
    public function NurseTwo()
    {
        return $this->hasOne(ShopPerson::class,'id','nurse_two');
    }

    public function shopGoods()
    {
        return $this->hasOne(ShopOrderGoods::class,'id','shop_order_goods_id');
    }
}
